package com.izhar.answeringmachine.service.Impl;

import com.izhar.answeringmachine.Entity.SubmitResult;
import com.izhar.answeringmachine.mapper.SubmitCodeMapper;
import com.izhar.answeringmachine.mapper.SubmitResultMapper;
import com.izhar.answeringmachine.service.ISaveCodeResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author izhar
 */
@Service
public class SaveCodeResultImpl implements ISaveCodeResult {

    @Autowired
    SubmitResultMapper submitResultMapper;

    @Override
    public void save(SubmitResult submitResult) {
        submitResultMapper.insert(submitResult);
    }
}
